<?php

namespace App\Http\Middleware;
use Closure;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;

class VerifyCsrfToken extends BaseVerifier
{
    /**
     * The URIs that should be excluded from CSRF verification.
     *
     * @var array
     */
    protected $except = [
        //
    ];
    private $openRoutes = ['Home/Login/login'];

    public function handle($request, Closure $next)
    {
        if (in_array($request->path(), $this->openRoutes)) {

            return $next($request);
        }
        return parent::handle($request, $next);
    }
}
